﻿<include file="top" />
<div class="submenu"><a href="?m=Subscriber" class="current">粉丝管理</a></div>
<form action="?m=Groups&a=save" method="post">
<table width="100%">
	<tr class="h"><td>ID</td><td>名称</td><td>GroupId</td><td>粉丝数</td><td>操作</td></tr>
<loop name="Groups">
	<eq name="Groups.Id" value="Mo.Get.Int.Id" type="assign">
	<tr class="l">
		<td width="40">{$Groups.Id}<input type="hidden" name="GroupId" value="{$Groups.GroupId}" /></td>
		<td><input type="text" name="Name" value="{$Groups.Name:F.encodeHTML}" size="8" /></td>
		<td>{$Groups.GroupId}</td>
		<td>{$Groups.SubCount}</td>
		<td><input type="submit" value="保存" /> <input onclick="window.location='?m=Groups'" type="button" value="取消" /></td>
	</tr>
	</else>
	<tr class="l">
		<td width="40">{$Groups.Id}</td><td>{$Groups.Name:F.encodeHTML}</td><td>{$Groups.GroupId}</td>
		<td>{$Groups.SubCount}</td>
		<td><a href="?m=Groups&Id={$Groups.Id}">修改</a></td>
	</tr>
	</eq>
</loop>
	<empty name="Mo.Get.Id">
	<tr class="l">
		<td>名称<input type="hidden" name="GroupId" value="0" /></td>
		<td colspan="4"><input type="text" name="Name" value="" size="8" /> <input type="submit" value="创建新用户组" /></td>
	</tr>
	</empty>
</table>
<input type="button" onclick="window.location='?m=Groups&a=get'" value="获取所有分组" />
</form>
<include file="foot" />